"""
@author: ty
@file: 2022-10-28作业.py
@time: 2022/10/28 17:43
"""

# import random
import numpy as np
# a = np.random.randint(0,2,12)
# b = random.randint(0,11)
# print("随机生成的二进制数是：",a ,"你选择的位置为：",b)
# if a[b:b+1] == 1:
#     print("恭喜中奖啦")
# else:
#     print("很遗憾，我们再试一次")




# id = input("请输入您的身份证：")
# year = id[6:10]
# if id.isdigit() and len(id) == 18 :
#     print("输入成功")
#     if (2022-eval(year)) <=18:
#         print("你是未成年哦")
#     elif 18<(2022-eval(year))<50 :
#         print("你是青壮年哦")
#     elif (2022 - eval(year)) >50:
#         print("您是老年人哦")
# else:
#     print("您的信息不规范")

